@tailwind base;
@tailwind components;
@tailwind utilities;

/* 全局自定义样式 */
body {
  font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  background-color: #f5f7fa;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* 修复Tailwind和Element Plus的冲突 */
.el-button {
  margin-left: 0;
}

/* 自定义组件样式 */
@layer components {
  .btn-primary {
    @apply bg-primary text-white py-2 px-4 rounded-md hover:bg-primary-dark transition;
  }
  
  .btn-secondary {
    @apply bg-white text-gray-700 py-2 px-4 border border-gray-300 rounded-md hover:bg-gray-50 transition;
  }
  
  .form-input {
    @apply w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  overflow-y: auto;
}

a {
  text-decoration: none;
  transition: 0.4s;
}

@media (hover: hover) {
  a:hover {
    background-color: transparent;
  }
}

@media (min-width: 1024px) {
  #app {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
  }
} 